package org.geektime.task.task12client.controller;

import org.geektime.task.task12client.entity.User;
import org.geektime.task.task12client.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * <p> UserController.java.</p>
 * <p>Description:  .</p>
 * <p>Company: .</p>
 * <p>@author Long Yu</p>
 * <p>@version .</p>
 * 2021年05月12日 23:13:06
 */
@Controller
@RequestMapping("/user")
public class UserController {


    @Autowired
    private IUserService userService;

    @ResponseBody
    @RequestMapping("/getUserList")
    public List<User> getUserList(){
        return userService.getUserList();
    }




}
